Bug 555578 – GtkTable propertiy maxima are wrong
authorChristian Dywan <cdywan@src.gnome.org>
Thu, 9 Oct 2008 15:57:55 +0000 (15:57 +0000)
committerChristian Dywan <cdywan@src.gnome.org>
Thu, 9 Oct 2008 15:57:55 +0000 (15:57 +0000)
* gtk/gtktable.c (gtk_table_class_init), (gtk_table_resize):
Always use 65535 instead of G_MAXUINT since that is
the actually supported maximum number of columns and rows

svn path=/trunk/; revision=21619

ChangeLog
gtk/gtktable.c

index c6cb3ce635c692bff4c165f6bfc140657ef27927..5402b6f1ca1699a9f2843f7ddebe3b119cf0e293 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-09  Christian Dywan  <christian@imendio.com>
+
+       Bug 555578 – GtkTable propertiy maxima are wrong
+
+       * gtk/gtktable.c (gtk_table_class_init), (gtk_table_resize):
+        Always use 65535 instead of G_MAXUINT since that is
+        the actually supported maximum number of columns and rows
+
 2008-10-09  Richard Hult  <richard@imendio.com>
 
        Bug 550342 – Splash screens have a caption
index cd1e05578de8f2bba41efa9ffdd66377e3b46f3b..a5d4b95f640f10a081b787e5f3e9129b5d9eb325 100644 (file)
@@ -129,7 +129,7 @@ gtk_table_class_init (GtkTableClass *class)
                                                     P_("Rows"),
                                                     P_("The number of rows in the table"),
                                                     1,
-                                                    G_MAXUINT,
+                                                    65535,
                                                     1,
                                                     GTK_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
@@ -138,7 +138,7 @@ gtk_table_class_init (GtkTableClass *class)
                                                     P_("Columns"),
                                                     P_("The number of columns in the table"),
                                                     1,
-                                                    G_MAXUINT,
+                                                    65535,
                                                     1,
                                                     GTK_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
@@ -147,7 +147,7 @@ gtk_table_class_init (GtkTableClass *class)
                                                     P_("Row spacing"),
                                                     P_("The amount of space between two consecutive rows"),
                                                     0,
-                                                    G_MAXUINT,
+                                                    65535,
                                                     0,
                                                     GTK_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
@@ -156,7 +156,7 @@ gtk_table_class_init (GtkTableClass *class)
                                                     P_("Column spacing"),
                                                     P_("The amount of space between two consecutive columns"),
                                                     0,
-                                                    G_MAXUINT,
+                                                    65535,
                                                     0,
                                                     GTK_PARAM_READWRITE));
   g_object_class_install_property (gobject_class,
@@ -482,8 +482,8 @@ gtk_table_resize (GtkTable *table,
                  guint     n_cols)
 {
   g_return_if_fail (GTK_IS_TABLE (table));
-  g_return_if_fail (n_rows > 0 && n_rows < 65536);
-  g_return_if_fail (n_cols > 0 && n_cols < 65536);
+  g_return_if_fail (n_rows > 0 && n_rows <= 65535);
+  g_return_if_fail (n_cols > 0 && n_cols <= 65535);
 
   n_rows = MAX (n_rows, 1);
   n_cols = MAX (n_cols, 1);